import React, { Component } from 'react'
import './serech.less'

import { SearchBar, WhiteSpace, WingBlank,Tabs, Badge } from 'antd-mobile';


import {connect} from 'react-redux'

const mapStae=state=>{
  return {
    isSubpage:state.ux.isSubpage
  }
}

 class Serech extends Component {
  state = {
    value: '',
  };
  onChange= (value) => {
    this.setState({ value });
  };
  

  
  render() {
   
    
    return (
      <div className="serech_com">


      {
  !this.props.isSubpage && 
  <SearchBar
              value={this.state.value}
              placeholder="请搜索收藏品"
            
              showCancelButton
              onChange={this.onChange}
            />
       
}
        
          
          
    </div>
    )
  }
}
export default connect(mapStae)(Serech)